package cn.zn.modules.pz.cur.controller;

import cn.zn.framework.common.utils.R;
import cn.zn.framework.common.utils.Result;
import cn.zn.modules.pz.cur.entity.TpMoney;
import cn.zn.modules.pz.cur.service.TpMainService;
import cn.zn.modules.pz.cur.service.TpMoneyService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("pz/cur/pzmoney")
public class TpMoneyController {

    @Autowired
    private TpMoneyService tpMoneyService;

    @GetMapping("list/{mainId}")
    public R list(@PathVariable String mainId) {
        return R.ok().put("data", tpMoneyService.queryByMainId(mainId));
    }

}
